/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package dominio;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

/**
 *
 * @author KOFMASTER
 */
@Entity
@Table(name = "estudiante_logro")
@NamedQueries({@NamedQuery(name = "EstudianteLogro.findAll", query = "SELECT e FROM EstudianteLogro e"), @NamedQuery(name = "EstudianteLogro.findByIdestlogro", query = "SELECT e FROM EstudianteLogro e WHERE e.idestlogro = :idestlogro"), @NamedQuery(name = "EstudianteLogro.findByCalificacionlogro", query = "SELECT e FROM EstudianteLogro e WHERE e.calificacionlogro = :calificacionlogro")})
public class EstudianteLogro implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "idestlogro")
    private Integer idestlogro;
    @Column(name = "calificacionlogro")
    private String calificacionlogro;
    @Column(name = "idlogro")
    private Integer idlogro;
    @Column(name = "idestudiante")
    private Integer idestudiante;
    
    public EstudianteLogro() {
    }

    public EstudianteLogro(Integer idestlogro) {
        this.idestlogro = idestlogro;
    }

    public Integer getIdestlogro() {
        return idestlogro;
    }

    public void setIdestlogro(Integer idestlogro) {
        this.idestlogro = idestlogro;
    }

    public String getCalificacionlogro() {
        return calificacionlogro;
    }

    public void setCalificacionlogro(String calificacionlogro) {
        this.calificacionlogro = calificacionlogro;
    }

    public Integer getIdestudiante() {
        return idestudiante;
    }

    public void setIdestudiante(Integer idestudiante) {
        this.idestudiante = idestudiante;
    }

    public Integer getIdlogro() {
        return idlogro;
    }

    public void setIdlogro(Integer idlogro) {
        this.idlogro = idlogro;
    }



    @Override
    public int hashCode() {
        int hash = 0;
        hash += (idestlogro != null ? idestlogro.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        if (!(object instanceof EstudianteLogro)) {
            return false;
        }
        EstudianteLogro other = (EstudianteLogro) object;
        if ((this.idestlogro == null && other.idestlogro != null) || (this.idestlogro != null && !this.idestlogro.equals(other.idestlogro))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "dominio.EstudianteLogro[idestlogro=" + idestlogro + "]";
    }

}
